﻿using System;
using NHibernate;
using TestBat.IModels.Domain;
using TestBat.IModels.Repositories;
using TestBat.Models.Domain;

namespace TestBat.Models.Repositories
{
    public class TaskRepository : Repository<ITask, Guid>, ITaskRepository
    {
        /// <summary>
        /// constructor
        /// </summary>
        /// <param name="session">The NHibernate-sessionfactory</param>
        public TaskRepository(ISessionFactory sessionFactory)
            : base(sessionFactory)
        {
        }

        public override ITask GetByID(Guid taskID)
        {
            return Session.Get<Task>(taskID);
        }
    }
}
